// UserAnswerRecordMapper.java
package com.exam.api.modules.exampaper.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.api.modules.exampaper.domain.TblUserAnswerRecord;
import com.exam.api.modules.exampaper.dto.AnswerRecordListDto;
import com.exam.api.modules.exampaper.dto.PageQuestionReviewDto;
import com.exam.api.modules.exampaper.vo.PageQuestionReviewVO;
import com.exam.api.modules.exampaper.vo.AnswerRecordVO;
import com.exam.api.modules.exampaper.vo.UserReviewAnswerItemVO;
import com.exam.api.modules.exampaper.vo.UserReviewAnswerVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TblUserAnswerRecordMapper extends BaseMapper<TblUserAnswerRecord> {
    Page<PageQuestionReviewVO> reviewQuestionList(Page<TblUserAnswerRecord> page, @Param("dto") PageQuestionReviewDto dto);
    Page<AnswerRecordVO> selectAnswerRecordList(Page<TblUserAnswerRecord> page, @Param("dto") AnswerRecordListDto dto);
    List<UserReviewAnswerItemVO> selectUserAnswerList(@Param("paperId") Long examPaperId, @Param("userId") Long userId);
    List<UserReviewAnswerVO> selectUserScoreAndRank(@Param("paperId") Long examPaperId, @Param("userId") Long userId);
}
